<template>
  <div class="card-body">
    <div></div>
    <div class="card-body-img">
      <img :src="course.img">
    </div>
    <div></div>
    <div class="card-body-title">
      {{course.title}}
    </div>
    <div></div>
    <div class="card-body-time">
      {{course.t}}
    </div>
    <div></div>
    <div class="card-body-info">
      {{course.info}}
    </div>
    <div></div>
    <div class="card-body-team">
      <div class="card-body-team-avatar"><img :src="course.avatar"/></div>
      <div></div>
      <div class="card-body-team-name">{{course.team}}</div>
    </div>
  </div>
</template>


<script>
export default {
  name:'CourseCard',
  props:{
    course:{
      type:Object,
      required:true,
    },
  },
}
</script>

<style scoped>
.card-body{
  width: 344px;
  height: 552px;
  background: #F3F3F3;
  border-radius: 20px;
  display: grid;
  grid-template-rows:18px 240px 37px 28px 9px 23px 22px 69px 38px 46px;
}
.card-body-img{
  width: 300px;
  height: 240px;
  margin: 0 auto;
  border: 2px solid #FFFFFF;
  box-sizing: border-box;
  border-radius: 20px;
}
.card-body-title{;
  width: 286px;
  height: 28px;
  margin: 0 auto;
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 700;
  font-size: 21px;
  line-height: 28px;
  letter-spacing: 0.075em;
  color: #002F68;
}
.card-body-time{
  width: 286px;
  height: 23px;
  margin: 0 auto;
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0.075em;
  color: #8E8E8E;
}
.card-body-info{
  width: 286px;
  height: 69px;
  margin: 0 auto;
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0.075em;
  color: #74777F;
}
.card-body-team{
  width: 286px;
  height: 46px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 46px 30px 210px;
  line-height: 46px;
}
.card-body-team-avatar{
  width: 46px;
  height: 46px;
  border: 1px solid #565E71;
  box-sizing: border-box;
  border-radius: 100%;
}
.card-body-team-name{
  width: 210px;
  height: 46px;
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 46px;
  letter-spacing: 0.075em;
  color: #000000;
}
</style>